package Nisha.Threads;

public class ThreadDemo {


	public static void main(String[] args) {
		
		threadsByThreadClass thread1 = new threadsByThreadClass("Thread1");
		threadsByThreadClass thread2 = new threadsByThreadClass("thread2");
		threadsByThreadClass thread3 = new threadsByThreadClass("thread3");
		
		ThreadsByRunnableInterface thread4 = new ThreadsByRunnableInterface();
		Thread thread4a = new Thread(thread4,"thread4");
		
		ThreadsByRunnableInterface thread5 = new ThreadsByRunnableInterface();
		Thread thread5a = new Thread(thread5,"thread5");
		thread1.start();
		thread2.start();
		thread3.start();
		thread4a.start();
		thread5a.start();

	}

}
